package Demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-14
 * Time: 19:12
 */
public class Test1 {
    public static void main(String[] arg) {
     Game game = new Game();
     List<Poker> pokers = game.buyPoker();
     System.out.println("牌的打印结果：");
     System.out.println(pokers);

     game.shuffle(pokers);
     System.out.println("洗牌的结果：");
     System.out.println(pokers);

    List<List<Poker>> hand = game.game(pokers);
    System.out.println("发牌的结果：");
    for(int i  = 0; i < hand.size();i++) {
        System.out.println("第"+(i+1)+"个人的牌："+hand.get(i));

    }
        System.out.println("剩下的牌：");
        System.out.println(pokers);
    }
}
